<?php

namespace App\Admin\Repositories;

use App\Models\Ad as Model;
use Dcat\Admin\Repositories\EloquentRepository;

class Ad extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;

    public static function isJump()
    {
        return [1 => '是', 0 => '否'];
    }

    public static function getAdType()
    {
        return [
            '首页' => '首页',
            '外讲库' => '外讲库',
            '案例库' => '案例库',
            '关于我们' => '关于我们',

        ];
    }
}
